<template>
    <div id="packManagement">
        <div class="header">
            <headbar :headstyleshow="isshowstyle"></headbar>
        </div>
        <div class="sidebar">
            <sidebar :openlist="menulist" :checklist="menuitem"></sidebar>
        </div>
        <div class="right-container">
            <router-view></router-view>
        </div>
    </div>
</template>
<script type="text/javascript">
    import sidebar from '../../components/sidebar'
    import headbar from '../../components/headbar'
    export default {
        components: {
            sidebar,
            headbar
        },
        data() {
            return {
                menulist:"",
                menuitem:['6'],
                isshowstyle:true,
            }
        },
        computed: {},
        created() {
            this.menulist = this.$route.query.name;
            switch (this.menulist)
            {
                case '6_1':
                    this.$router.push({
                        path: '/systemManagement/index',
                        query: {name: '6_1'}
                    })
                    break;
                case '6_2':
                    this.$router.push({
                        path: '/systemManagement/dictionary',
                        query: {name: '6_2'}
                    })
                    break;
                case '6_3':
                    this.$router.push({
                        path: '/systemManagement/roleManage',
                        query: {name: '6_3'}
                    })
                    break;
                case '6_4':
                    this.$router.push({
                        path: '/systemManagement/SMSTemplate',
                        query: {name: '6_4'}
                    })
                    break;
            }
        },
        methods: {},
        mounted() {

        }
    }
</script>
<style lang="less" scoped>
    #emergencyManagement{
        width: 100%;
        height: 100%;
    }
    .right-container{
        padding: 15px;
    }
</style>
